<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06-在浏览器中使用art-template</title>
</head>
<body>
  <!-- 注意：在浏览器中需要引用lib/template-web.js 文件 -->
  <script src="node_modules/art-template/lib/template-web.js"></script>
  <script type="text/template" id="tpl">
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Document</title>
    </head>
    <body>
      <P>大家好，{{ name }}</P>
    </body>
    </html>
  </script>
  <script>
    var ret = template('tpl', {
      name: 'Jack'
    })
    console.log(ret)
  </script>
</body>
</html>